package com.atguigu.blog.article.feign;

import com.atguigu.blog.article.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "blog-user" , fallbackFactory = UserFeignFallbackFactory.class)
//@FeignClient(value = "blog-user" )
public interface UserFeignClient {

    @GetMapping("/user/{userId}")
    User queryUserById(@PathVariable("userId") Integer id);
}
